import request from '@/utils/request'

// 获取员工列表
export function getEmployeeList(page, size) {
  return request({
    url: '/sys/user',
    method: 'get',
    params: { page, size }
  })
}

// 新增员工
export function addEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}

// 删除员工
export function delEmployee(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'delete'
  })
}

// 批量导入员工
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}

